package com.hj.authority.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import com.hj.authority.domain.entity.SysParams;
import com.hj.mybatis.dao.BaseDao;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author hj
 * @Date 2023/4/27
 * @Description: SysParamsDao
 */
@Mapper
public interface SysParamsDao extends BaseDao<SysParams> {

    default boolean isExist(String paramKey) {
        return this.exists(new QueryWrapper<SysParams>().eq("param_key" , paramKey));
    }

}